package com.tsinghua.discharge.service;

import com.github.pagehelper.PageInfo;
import com.tsinghua.discharge.common.ServerResponse;
import com.tsinghua.discharge.model.FileUploadRecord;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;

public interface FileUploadRecordService {
    public ServerResponse addRecord(MultipartFile file, FileUploadRecord uploadRecord, HttpSession session);
    public ServerResponse<PageInfo> getList(Integer page, Integer limit, String fileType, HttpSession session) ;
    public ServerResponse<PageInfo> getListBySector(Integer page, Integer limit, String fileType, HttpSession session,String sector) ;
    public ServerResponse addXlsxRecord(MultipartFile file, FileUploadRecord uploadRecord, HttpSession session);
    //public ServerResponse deleteRecord(Integer UpReId, Integer userId);
    public ServerResponse deleteRecordByFileTypeAndSector(String filetype,String sector, Integer userId);
}
